#ifndef WCUTILITY_H
#define WCUTILITY_H

#include <string>
using std::string;

enum W_Status
{/* peer status */
	W_ST_BEGIN_CONNECT,
	W_ST_CONNECTED,
	//W_ST_FILE_SENDING,
	//W_ST_FILE_RECVING,
	W_ST_DISCONNECTING


};

enum W_MSGType
{/* message type */
	W_MS_EMPTY = 0,
	W_MS_MSG,
	W_MS_STATUS,
	W_MS_FILE_QRY,
	W_MS_FILE_RPY,
	W_MS_CONN_QRY,
	W_MS_CONN_RPY
};
const unsigned int MAX_BUFFER_SIZE = 4096;
const unsigned int MAX_CONTENT_SIZE = 1024;

struct WCMessage
{
	W_MSGType type;
	char content[MAX_CONTENT_SIZE];
};

/*
const string W_STR_MSGTYPE[]=
{
	"NULL",
	"MSEG",
	"STATUS",
	"F_QRY",
	"F_RPY",
	"C_QRY",
	"C_RPY"
};
*/
/*
//message head
const string W_STR_EMPTY("NULL");
const string W_STR_MSEG("MSEG");
const string W_STR_STATUS("STATUS");
const string W_STR_FILE_QRY("F_QRY");
const string W_STR_FILE_RPY("F_RPY");
const string W_STR_CONN_QRY("C_QRY");
const string W_STR_CONN_RPY("C_RPY");
*/
//RPY type
const string W_STR_ACCEPT("AC");
const string W_STR_REFUSE("RE");

#endif